<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/form/base.css') ?>
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/payment.css') ?>
<?php
$amount = $this->payment['amount'];
$amount = sprintf('%01.2f', $amount);
$amountDisplay = str_replace('.', ',', $amount);
$paymentId = $this->payment['payment_id'];
$info = isset($this->info) ? $this->info : '';
?>
<div class="payment_summary">
    <h4><?= $this->translate('XXX_PAYMENT_TITLE') ?></h4>
    <div class="payment_info"><?= $info ?></div>

    <div class="payment-amount">
        <span class="payment_label"><?= $this->translate('XXX_PAYMENT_TO_PAY_TEXT') ?></span>
        <span class="payment_value"><?= $amountDisplay ?></span> <span class="payment-currency">PLN</span>
    </div>
    <form class="form" action="/payment/mock" method="get">
        <div class="span12 row-fluid  row-type-submit row-submit    info">
            <div class="span12 data type-submit element-submit">
                <input type="submit" class="btn btn-primary btn-large submit form_button button " value="Przejdź do płatności" id="submit" name="submit">
            </div>
        </div>
        <input type="hidden" name="payment_id" value="<?= $paymentId ?>" />
        <input type="hidden" name="amount" value="<?= $amount ?>" />
    </form>
</div>